import request from "../utils/request";
import { IReportData, ILineData, IPieData, IRadarData } from "../types/dashboard";

export default {
  getReportData() {
    return request.get<IReportData>("/order/dashboard/getReportData");
  },
  getLineData() {
    return request.get<ILineData>("/order/dashboard/getLineData");
  },
  getPieCityData() {
    return request.get<IPieData>("/order/dashboard/getPieCityData");
  },
  getPieAgeData() {
    return request.get<IPieData>("/order/dashboard/getPieAgeData");
  },
  getRadarData() {
    return request.get<IRadarData>("/order/dashboard/getRadarData");
  },
};
